﻿namespace Community.CsharpSqlite.Entity
{
    /*
 ** Structure allocated for each backup operation.
 */

    public class sqlite3_backup
    {
        public int bDestLocked; /* True once a write-transaction is open on pDest */
        public uint iDestSchema; /* Original schema cookie in destination */

        public uint iNext; /* Page number of the next source page to copy */

        public int isAttached; /* True once backup has been registered with pager */
        public uint nPagecount; /* Total number of pages to copy */
        public uint nRemaining; /* Number of pages left to copy */
        public Btree pDest; /* Destination b-tree file */
        public sqlite3 pDestDb; /* Destination database handle */
        public sqlite3_backup pNext; /* Next backup associated with source pager */
        public Btree pSrc; /* Source b-tree file */
        public sqlite3 pSrcDb; /* Source database handle */
        public int rc; /* Backup process error code */
    };
}